package com.bootx.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Index;
import jakarta.persistence.Table;
import org.hibernate.annotations.Comment;

import java.util.Date;

@Entity
@Table(
        indexes = {
                @Index(name = "lotteryCode_sn_index",columnList = "lotteryCode,sn",unique = true)
        }
)
public class LotteryRecord extends BaseEntity<Long>{

    private Long lotteryCode;

    private Date drawTime;

    @Comment("开奖号码")
    private String drawCode;

    private Long sn;

    @Column(length = 4000)
    private String openInfo;

    /**
     * 0:双
     * 1：单
     */
    private Integer predictResult;

    private Integer predictPosition;

    private Boolean win;

    public Long getLotteryCode() {
        return lotteryCode;
    }

    public void setLotteryCode(Long lotteryCode) {
        this.lotteryCode = lotteryCode;
    }

    public Date getDrawTime() {
        return drawTime;
    }

    public void setDrawTime(Date drawTime) {
        this.drawTime = drawTime;
    }

    public String getDrawCode() {
        return drawCode;
    }

    public void setDrawCode(String drawCode) {
        this.drawCode = drawCode;
    }

    public Long getSn() {
        return sn;
    }

    public void setSn(Long sn) {
        this.sn = sn;
    }

    public String getOpenInfo() {
        return openInfo;
    }

    public void setOpenInfo(String openInfo) {
        this.openInfo = openInfo;
    }

    public Integer getPredictResult() {
        return predictResult;
    }

    public void setPredictResult(Integer predictResult) {
        this.predictResult = predictResult;
    }

    public Boolean getWin() {
        return win;
    }

    public void setWin(Boolean win) {
        this.win = win;
    }

    public Integer getPredictPosition() {
        return predictPosition;
    }

    public void setPredictPosition(Integer predictPosition) {
        this.predictPosition = predictPosition;
    }

}

